import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'


// const router = createRouter({
// 	history: createWebHashHistory(),
// 	routes
// })

// history: createWebHistory(import.meta.env.BASE_URL),

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: 'admin_home',
      redirect: 'admin_index',
      component: () => import('../views/admin/admin_home.vue'),
      children: [
        {
          path: '/admin_index',
          name: 'admin_index',
          component: () => import('../views/admin/admin_index.vue')
        },
        {
          path: '/admin_account',
          name: 'admin_account',
          component: () => import('../views/admin/admin_account.vue')
        },
        {
          path: '/admin_users',
          name: 'admin_users',
          component: () => import('../views/admin/admin_users.vue')
        },
        {
          path: '/admin_sms',
          name: 'admin_sms',
          component: () => import('../views/admin/admin_sms.vue')
        },
        {
          path: '/admin_users_count',
          name: 'admin_users_count',
          component: () => import('../views/admin/admin_users_count.vue')
        },
        {
          path: '/admin_users_money_log',
          name: 'admin_users_money_log',
          component: () => import('../views/admin/admin_users_money_log.vue')
        },
        {
          path: '/admin_logger',
          name: 'admin_logger',
          component: () => import('../views/admin/admin_logger.vue')
        },
        {
          path: '/admin_agent',
          name: 'admin_agent',
          component: () => import('../views/admin/admin_agent.vue')
        },

        {
          path: '/admin_agent_money_log',
          name: 'admin_agent_money_log',
          component: () => import('../views/admin/admin_agent_money_log.vue')
        },
        {
          path: '/admin_config',
          name: 'admin_config',
          component: () => import('../views/admin/admin_config.vue')
        },
        {
          path: '/admin_config2',
          name: 'admin_config2',
          component: () => import('../views/admin/admin_config2.vue')
        },
        {
          path: '/admin_order',
          name: 'admin_order',
          component: () => import('../views/admin/admin_order.vue')
        },

        {
          path: '/admin_walletsave_order',
          name: 'admin_walletsave_order',
          component: () => import('../views/admin/admin_walletsave_order.vue')
        },
        {
          path: '/admin_wallettake_order',
          name: 'admin_wallettake_order',
          component: () => import('../views/admin/admin_wallettake_order.vue')
        },
        {
          path: '/admin_yjzrye_order',
          name: 'admin_yjzrye_order',
          component: () => import('../views/admin/admin_yjzrye_order.vue')
        },
        {
          path: '/admin_robot',
          name: 'admin_robot',
          component: () => import('../views/admin/admin_robot.vue')
        },
        {
          path: '/admin_news',
          name: 'admin_news',
          component: () => import('../views/admin/admin_news.vue')
        },
        {
          path: '/admin_group',
          name: 'admin_group',
          component: () => import('../views/admin/admin_group.vue')
        },

        {
          path: '/admin_aozhou_config',
          name: 'admin_aozhou_config',
          component: () => import('../views/admin/admin_aozhou_config.vue')
        },

        {
          path: '/admin_jianada_config',
          name: 'admin_jianada_config',
          component: () => import('../views/admin/admin_jianada_config.vue')
        },

        {
          path: '/admin_xinjiapo_config',
          name: 'admin_xinjiapo_config',
          component: () => import('../views/admin/admin_xinjiapo_config.vue')
        },

        {
          path: '/red_envelope_cow_10_config',
          name: 'red_envelope_cow_10_config',
          component: () => import('../views/admin/red_envelope_cow_10_config.vue')
        },
        {
          path: '/red_envelope_mine_sweeping_config',
          name: 'red_envelope_mine_sweeping_config',
          component: () => import('../views/admin/red_envelope_mine_sweeping_config.vue')
        },
        {
          path: '/red_envelope_with_28_bars_config',
          name: 'red_envelope_with_28_bars_config',
          component: () => import('../views/admin/red_envelope_with_28_bars_config.vue')
        },
        {
          path: '/red_envelope_dragon_config',
          name: 'red_envelope_dragon_config',
          component: () => import('../views/admin/red_envelope_dragon_config.vue')
        },

        {
          path: '/admin_issue_management', 
          name: 'admin_issue_management', 
          component: () => import('../views/admin/issue_management.vue') 
        },
        { 
          path: '/admin_xinjiapo_issue', 
          name: 'admin_xinjiapo_issue', 
          component: () => import('../views/admin/admin_xinjiapo_issue.vue') 
        },

        {
          path: '/admin_aomenjisu_config',
          name: 'admin_aomenjisu_config',
          component: () => import('../views/admin/admin_aomenjisu_config.vue')
        },

        {
          path: '/admin_aomenjisu_issue',
          name: 'admin_aomenjisu_issue',
          component: () => import('../views/admin/admin_aomenjisu_issue.vue')
        },

        {
          path: '/admin_xianggang_config',
          name: 'admin_xianggang_config',
          component: () => import('../views/admin/admin_xianggang_config.vue')
        },

        

        {
          path: '/admin_aomen_config',
          name: 'admin_aomen_config',
          component: () => import('../views/admin/admin_aomen_config.vue')
        },
        { path: '/admin_aozhou_issue', name: 'admin_aozhou_issue', component: () => import('../views/admin/admin_aozhou_issue.vue') },


        {
          path: '/admin_jianada_issue',
          name: 'admin_jianada_issue',
          component: () => import('../views/admin/admin_jianada_issue.vue')
        },

        {
          path: '/admin_xianggang_issue',
          name: 'admin_xianggang_issue',
          component: () => import('../views/admin/admin_xianggang_issue.vue')
        },

        {
          path: '/admin_aomen_issue',
          name: 'admin_aomen_issue',
          component: () => import('../views/admin/admin_aomen_issue.vue')
        },
        
        {
          path: '/red_envelope_cow_10_issue',
          name: 'red_envelope_cow_10_issue',
          component: () => import('../views/admin/red_envelope_cow_10_issue.vue')
        },
        {
          path: '/red_envelope_mine_sweeping_issue',
          name: 'red_envelope_mine_sweeping_issue',
          component: () => import('../views/admin/red_envelope_mine_sweeping_issue.vue')
        },
        {
          path: '/red_envelope_with_28_bars_issue',
          name: 'red_envelope_with_28_bars_issue',
          component: () => import('../views/admin/red_envelope_with_28_bars_issue.vue')
        },
        {
          path: '/red_envelope_dragon_issue',
          name: 'red_envelope_dragon_issue',
          component: () => import('../views/admin/red_envelope_dragon_issue.vue')
        },
        {
          path: '/k3_hanguo_config',
          name: 'k3_hanguo_config',
          component: () => import('../views/admin/k3_hanguo_config.vue')
        },
        {
          path: '/k3_hanguo_issue',
          name: 'k3_hanguo_issue',
          component: () => import('../views/admin/k3_hanguo_issue.vue')
        },
        {
          path: '/k3_jshanguo_issue',
          name: 'k3_jshanguo_issue',
          component: () => import('../views/admin/k3_jshanguo_issue.vue')
        },
        {
          path: '/k3_jshanguo_config',
          name: 'k3_jshanguo_config',
          component: () => import('../views/admin/k3_jshanguo_config.vue')
        },
        {
          path: '/lhc_jisu_issue',
          name: 'lhc_jisu_issue',
          component: () => import('../views/admin/lhc_jisu_issue.vue')
        },
        {
          path: '/lhc_jisu_config',
          name: 'lhc_jisu_config',
          component: () => import('../views/admin/lhc_jisu_config.vue')
        },
        {
          path: '/admin_config_banner',
          name: 'admin_config_banner',
          component: () => import('../views/admin/admin_config_banner.vue')
        },
        {
          path: '/admin_config_qb_banner',
          name: 'admin_config_qb_banner',
          component: () => import('../views/admin/admin_config_qb_banner.vue')
        },
        {
          path: '/admin_config_guize',
          name: 'admin_config_guize',
          component: () => import('../views/admin/admin_config_guize.vue')
        },
        {
          path: '/admin_hongbao_order',
          name: 'admin_hongbao_order',
          component: () => import('../views/admin/admin_hongbao_order.vue')
        },
        {
          path: '/pk10_jisusaiche_issue',
          name: 'pk10_jisusaiche_issue',
          component: () => import('../views/admin/pk10_jisusaiche_issue.vue')
        },
        {
          path: '/pk10_jisusaiche_config',
          name: 'pk10_jisusaiche_config',
          component: () => import('../views/admin/pk10_jisusaiche_config.vue')
        },
        {
          path: '/pk10_jisufeiting_issue',
          name: 'pk10_jisufeiting_issue',
          component: () => import('../views/admin/pk10_jisufeiting_issue.vue')
        },
        {
          path: '/pk10_jisufeiting_config',
          name: 'pk10_jisufeiting_config',
          component: () => import('../views/admin/pk10_jisufeiting_config.vue')
        },
        {
          path: '/admin_vip',
          name: 'admin_vip',
          component: () => import('../views/admin/admin_vip.vue')
        },
        {
          path: '/admin_balance_bao',
          name: 'admin_balance_bao',
          component: () => import('../views/admin/admin_balance_bao.vue')
        },
        {
          path: '/kl28_config',
          name: 'kl28_config',
          component: () => import('../views/admin/kl28_config.vue')
        },
        {
          path: '/kl28_aozhou_config',
          name: 'kl28_aozhou_config',
          component: () => import('../views/admin/kl28_aozhou_config.vue')
        },
        {
          path: '/kl28_aozhou_issue',
          name: 'kl28_aozhou_issue',
          component: () => import('../views/admin/kl28_aozhou_issue.vue')
        },

        {
          path: '/kl28_moxige_config',
          name: 'kl28_moxige_config',
          component: () => import('../views/admin/kl28_moxige_config.vue')
        },
        {
          path: '/kl28_moxige_issue',
          name: 'kl28_moxige_issue',
          component: () => import('../views/admin/kl28_moxige_issue.vue')
        },
        {
          path: '/kl28_xinjiapo_config',
          name: 'kl28_xinjiapo_config',
          component: () => import('../views/admin/kl28_xinjiapo_config.vue')
        },
        {
          path: '/kl28_xinjiapo_issue',
          name: 'kl28_xinjiapo_issue',
          component: () => import('../views/admin/kl28_xinjiapo_issue.vue')
        },
        {
          path: '/red_envelope_setting',
          name: 'red_envelope_setting',
          component: () => import('../views/admin/red_envelope_setting.vue')
        },
      ]
    },

    {
      path: '/admin_login',
      name: 'admin_login',
      component: () => import('../views/admin/admin_login.vue')
    }
  ]
})

export default router
